.PHONY:all
all:servercal clientcal

flag=-DMySelf=1
lib=-ljsoncpp

servercal:Servercal.cc
	g++ -o $@ $^ -std=c++11 $(lib) #$(flag)

clientcal:Clientcal.cc
	g++ -o $@ $^ -std=c++11 $(lib) #$(flag)

.PHONY:clean
clean:
	rm -f servercal clientcal